//
//
//  任意位置补偿
//
//

import QtQuick
import QtQuick.Layouts


Item {
    width: rootWidth
    height: rootHeight/* - 150*/

    A_NumberKeyboard{
        id: anyLocationKeyboard
        isDirectOverwrite: false
    }


    Component.onCompleted: {
        // console.log("生成！！ - 任意位置补偿")
        Cpp_PLC.QML_CurrentPage = 16;
    }

    // Component.onDestruction: {
    //     console.log("销毁 - 任意位置补偿")
    // }

    A_Label{
        anchors.top: parent.top
        anchors.topMargin: 5
        anchors.left: parent.left
        anchors.leftMargin: 50
        label_Data: qsTr("位置下限")
    }
    A_Label{
        anchors.top: parent.top
        anchors.topMargin: 5
        anchors.left: parent.left
        anchors.leftMargin: 330
        label_Data: qsTr("位置上限")
    }
    A_Label{
        anchors.top: parent.top
        anchors.topMargin: 5
        anchors.left: parent.left
        anchors.leftMargin: 610
        label_Data: qsTr("补偿值")
    }

    ColumnLayout{
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.top: parent.top
        anchors.topMargin: 75

        Item{
            width: 1060
            height: 85

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_DownLimit_01

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1750,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1750,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1750,inputData)
            //         }
            //     }

            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_DownLimit_01
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1750,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 280
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_UpLimit_01

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1752,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1752,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1752,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 280
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_UpLimit_01
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1752,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 560
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_01

            //     onInputFinished: {
            //         if(Number(inputData) < -99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1754,"-99")
            //         }
            //         else if(Number(inputData) > 99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1754,"99")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1754,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 560
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_01
                minValue: -99
                maxValue: 99
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1754,value)
                }

            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 850
                contentText_Fontsize: 40
                contentText_Data: Cpp_PLC.AnyLocation_State01 ? qsTr("已启用") : qsTr("已禁用")
                contentText_Color: Cpp_PLC.AnyLocation_State01 ?  "red" : "black"

                onButtonClicked: {
                    if(Cpp_PLC.AnyLocation_State01)
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(401,"0")
                    }
                    else
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(401,"1")
                    }
                }
            }
        }
        Item{
            width: 1060
            height: 85

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     // anchors.leftMargin: 20
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_DownLimit_02

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1756,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1756,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1756,inputData)
            //         }
            //     }


            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                // anchors.leftMargin: 20
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_DownLimit_02
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1756,value)
                }

            }


            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 280
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_UpLimit_02

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1758,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1758,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1758,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 280
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_UpLimit_02
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1758,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 560
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_02

            //     onInputFinished: {
            //         if(Number(inputData) < -99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1760,"-99")
            //         }
            //         else if(Number(inputData) > 99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1760,"99")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1760,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 560
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_02
                minValue: -99
                maxValue: 99
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1760,value)
                }

            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 850
                contentText_Fontsize: 40
                contentText_Data: Cpp_PLC.AnyLocation_State02 ? qsTr("已启用") : qsTr("已禁用")
                contentText_Color: Cpp_PLC.AnyLocation_State02 ?  "red" : "black"

                onButtonClicked: {
                    if(Cpp_PLC.AnyLocation_State02)
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(402,"0")
                    }
                    else
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(402,"1")
                    }
                }
            }
        }
        Item{
            width: 1060
            height: 85

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     // anchors.leftMargin: 20
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_DownLimit_03

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1762,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1762,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1762,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                // anchors.leftMargin: 20
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_DownLimit_03
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1762,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 280
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_UpLimit_03

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1764,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1764,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1764,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 280
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_UpLimit_03
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1764,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 560
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_03

            //     onInputFinished: {
            //         if(Number(inputData) < -99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1766,"-99")
            //         }
            //         else if(Number(inputData) > 99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1766,"99")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1766,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 560
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_03
                minValue: -99
                maxValue: 99
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1766,value)
                }

            }


            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 850
                contentText_Fontsize: 40
                contentText_Data: Cpp_PLC.AnyLocation_State03 ? qsTr("已启用") : qsTr("已禁用")
                contentText_Color: Cpp_PLC.AnyLocation_State03 ?  "red" : "black"

                onButtonClicked: {
                    if(Cpp_PLC.AnyLocation_State03)
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(403,"0")
                    }
                    else
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(403,"1")
                    }
                }
            }
        }
        Item{
            width: 1060
            height: 85

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     // anchors.leftMargin: 20
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_DownLimit_04

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1768,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1768,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1768,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                // anchors.leftMargin: 20
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_DownLimit_04
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1768,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 280
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_UpLimit_04

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1770,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1770,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1770,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 280
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_UpLimit_04
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1770,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 560
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_04

            //     onInputFinished: {
            //         if(Number(inputData) < -99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1772,"-99")
            //         }
            //         else if(Number(inputData) > 99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1772,"99")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1772,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 560
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_04
                minValue: -99
                maxValue: 99
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1772,value)
                }

            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 850
                contentText_Fontsize: 40
                contentText_Data: Cpp_PLC.AnyLocation_State04 ? qsTr("已启用") : qsTr("已禁用")
                contentText_Color: Cpp_PLC.AnyLocation_State04 ?  "red" : "black"

                onButtonClicked: {
                    if(Cpp_PLC.AnyLocation_State04)
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(404,"0")
                    }
                    else
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(404,"1")
                    }
                }
            }
        }
        Item{
            width: 1060
            height: 85

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     // anchors.leftMargin: 20
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_DownLimit_05

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1774,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1774,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1774,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                // anchors.leftMargin: 20
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_DownLimit_05
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1774,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 280
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_UpLimit_05

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1776,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1776,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1776,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 280
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_UpLimit_05
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1776,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 560
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_05

            //     onInputFinished: {
            //         if(Number(inputData) < -99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1778,"-99")
            //         }
            //         else if(Number(inputData) > 99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1778,"99")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1778,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 560
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_05
                minValue: -99
                maxValue: 99
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1778,value)
                }

            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 850
                contentText_Fontsize: 40
                contentText_Data: Cpp_PLC.AnyLocation_State05 ? qsTr("已启用") : qsTr("已禁用")
                contentText_Color: Cpp_PLC.AnyLocation_State05 ?  "red" : "black"

                onButtonClicked: {
                    if(Cpp_PLC.AnyLocation_State05)
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(405,"0")
                    }
                    else
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(405,"1")
                    }
                }
            }
        }
        Item{
            width: 1060
            height: 85

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     // anchors.leftMargin: 20
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_DownLimit_06

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1780,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1780,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1780,inputData)
            //         }
            //     }
            // }


            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                // anchors.leftMargin: 20
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_DownLimit_06
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1780,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 280
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_UpLimit_06

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1782,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1782,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1782,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 280
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_UpLimit_06
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1782,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 560
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_06

            //     onInputFinished: {
            //         if(Number(inputData) < -99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1784,"-99")
            //         }
            //         else if(Number(inputData) > 99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1784,"99")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1784,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 560
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_06
                minValue: -99
                maxValue: 99
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1784,value)
                }

            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 850
                contentText_Fontsize: 40
                contentText_Data: Cpp_PLC.AnyLocation_State06 ? qsTr("已启用") : qsTr("已禁用")
                contentText_Color: Cpp_PLC.AnyLocation_State06 ?  "red" : "black"

                onButtonClicked: {
                    if(Cpp_PLC.AnyLocation_State06)
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(406,"0")
                    }
                    else
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(406,"1")
                    }
                }
            }
        }
        Item{
            width: 1060
            height: 85

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     // anchors.leftMargin: 20
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_DownLimit_07

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1786,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1786,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1786,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                // anchors.leftMargin: 20
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_DownLimit_07
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1786,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 280
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_UpLimit_07

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1788,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1788,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1788,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 280
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_UpLimit_07
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1788,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 560
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_07

            //     onInputFinished: {
            //         if(Number(inputData) < -99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1790,"-99")
            //         }
            //         else if(Number(inputData) > 99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1790,"99")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1790,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 560
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_07
                minValue: -99
                maxValue: 99
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1790,value)
                }

            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 850
                contentText_Fontsize: 40
                contentText_Data: Cpp_PLC.AnyLocation_State07 ? qsTr("已启用") : qsTr("已禁用")
                contentText_Color: Cpp_PLC.AnyLocation_State07 ?  "red" : "black"

                onButtonClicked: {
                    if(Cpp_PLC.AnyLocation_State07)
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(407,"0")
                    }
                    else
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(407,"1")
                    }
                }
            }
        }
        Item{
            width: 1060
            height: 85

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     // anchors.leftMargin: 20
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_DownLimit_08

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1792,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1792,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1792,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                // anchors.leftMargin: 20
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_DownLimit_08
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1792,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 280
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_UpLimit_08

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1794,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1794,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1794,inputData)
            //         }
            //     }
            // }


            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 280
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_UpLimit_08
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1794,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 560
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_08

            //     onInputFinished: {
            //         if(Number(inputData) < -99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1796,"-99")
            //         }
            //         else if(Number(inputData) > 99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1796,"99")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1796,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 560
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_08
                minValue: -99
                maxValue: 99
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1796,value)
                }

            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 850
                contentText_Fontsize: 40
                contentText_Data: Cpp_PLC.AnyLocation_State08 ? qsTr("已启用") : qsTr("已禁用")
                contentText_Color: Cpp_PLC.AnyLocation_State08 ?  "red" : "black"

                onButtonClicked: {
                    if(Cpp_PLC.AnyLocation_State08)
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(408,"0")
                    }
                    else
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(408,"1")
                    }
                }
            }
        }
        Item{
            width: 1060
            height: 85

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     // anchors.leftMargin: 20
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_DownLimit_09

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1798,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1798,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1798,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                // anchors.leftMargin: 20
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_DownLimit_09
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1798,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 280
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_UpLimit_09

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1800,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1800,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1800,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 280
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_UpLimit_09
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1800,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 560
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_09

            //     onInputFinished: {
            //         if(Number(inputData) < -99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1802,"-99")
            //         }
            //         else if(Number(inputData) > 99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1802,"99")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1802,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 560
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_09
                minValue: -99
                maxValue: 99
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1802,value)
                }

            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 850
                contentText_Fontsize: 40
                contentText_Data: Cpp_PLC.AnyLocation_State09 ? qsTr("已启用") : qsTr("已禁用")
                contentText_Color: Cpp_PLC.AnyLocation_State09 ?  "red" : "black"

                onButtonClicked: {
                    if(Cpp_PLC.AnyLocation_State09)
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(409,"0")
                    }
                    else
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(409,"1")
                    }
                }
            }
        }
        Item{
            width: 1060
            height: 85

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     // anchors.leftMargin: 20
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_DownLimit_10

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1804,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1804,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1804,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                // anchors.leftMargin: 20
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_DownLimit_10
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1804,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 280
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_UpLimit_10

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1806,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1806,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1806,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 280
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_UpLimit_10
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1806,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 560
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_10

            //     onInputFinished: {
            //         if(Number(inputData) < -99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1808,"-99")
            //         }
            //         else if(Number(inputData) > 99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1808,"99")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1808,inputData)
            //         }
            //     }

            // }


            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 560
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_10
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1808,value)
                }

            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 850
                contentText_Fontsize: 40
                contentText_Data: Cpp_PLC.AnyLocation_State10 ? qsTr("已启用") : qsTr("已禁用")
                contentText_Color: Cpp_PLC.AnyLocation_State10 ?  "red" : "black"

                onButtonClicked: {
                    if(Cpp_PLC.AnyLocation_State10)
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(410,"0")
                    }
                    else
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(410,"1")
                    }
                }
            }
        }
        Item{
            width: 1060
            height: 85

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     // anchors.leftMargin: 20
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_DownLimit_11

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1810,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1810,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1810,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                // anchors.leftMargin: 20
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_DownLimit_11
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1808,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 280
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_UpLimit_11

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1812,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1812,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1812,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 280
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_UpLimit_11
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1812,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 560
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_11

            //     onInputFinished: {
            //         if(Number(inputData) < -99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1814,"-99")
            //         }
            //         else if(Number(inputData) > 99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1814,"99")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1814,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 560
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_11
                minValue: -99
                maxValue: 99
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1814,value)
                }

            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 850
                contentText_Fontsize: 40
                contentText_Data: Cpp_PLC.AnyLocation_State11 ? qsTr("已启用") : qsTr("已禁用")
                contentText_Color: Cpp_PLC.AnyLocation_State11 ?  "red" : "black"

                onButtonClicked: {
                    if(Cpp_PLC.AnyLocation_State11)
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(411,"0")
                    }
                    else
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(411,"1")
                    }
                }
            }
        }
        Item{
            width: 1060
            height: 85

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     // anchors.leftMargin: 20
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_DownLimit_12

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1816,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1816,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1816,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                // anchors.leftMargin: 20
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_DownLimit_12
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1814,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 280
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_UpLimit_12

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1818,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1818,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1818,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 280
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_UpLimit_12
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1818,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 560
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_12

            //     onInputFinished: {
            //         if(Number(inputData) < -99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1820,"-99")
            //         }
            //         else if(Number(inputData) > 99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1820,"99")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1820,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 560
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_12
                minValue: -99
                maxValue: 99
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1820,value)
                }

            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 850
                contentText_Fontsize: 40
                contentText_Data: Cpp_PLC.AnyLocation_State12 ? qsTr("已启用") : qsTr("已禁用")
                contentText_Color: Cpp_PLC.AnyLocation_State12 ?  "red" : "black"

                onButtonClicked: {
                    if(Cpp_PLC.AnyLocation_State12)
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(412,"0")
                    }
                    else
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(412,"1")
                    }
                }
            }
        }
        Item{
            width: 1060
            height: 85

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     // anchors.leftMargin: 20
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_DownLimit_13

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1822,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1822,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1822,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                // anchors.leftMargin: 20
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_DownLimit_13
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1822,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 280
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_UpLimit_13

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1824,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1824,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1824,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 280
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_UpLimit_13
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1824,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 560
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_13

            //     onInputFinished: {
            //         if(Number(inputData) < -99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1826,"-99")
            //         }
            //         else if(Number(inputData) > 99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1826,"99")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1826,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 560
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_13
                minValue: -99
                maxValue: 99
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1826,value)
                }

            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 850
                contentText_Fontsize: 40
                contentText_Data: Cpp_PLC.AnyLocation_State13 ? qsTr("已启用") : qsTr("已禁用")
                contentText_Color: Cpp_PLC.AnyLocation_State13 ?  "red" : "black"

                onButtonClicked: {
                    if(Cpp_PLC.AnyLocation_State13)
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(413,"0")
                    }
                    else
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(413,"1")
                    }
                }
            }
        }
        Item{
            width: 1060
            height: 85

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     // anchors.leftMargin: 20
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_DownLimit_14

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1828,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1828,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1828,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                // anchors.leftMargin: 20
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_DownLimit_14
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1828,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 280
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_UpLimit_14

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1830,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1830,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1830,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 280
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_UpLimit_14
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1830,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 560
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_14

            //     onInputFinished: {
            //         if(Number(inputData) < -99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1832,"-99")
            //         }
            //         else if(Number(inputData) > 99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1832,"99")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1832,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 560
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_14
                minValue: -99
                maxValue: 99
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1832,value)
                }

            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 850
                contentText_Fontsize: 40
                contentText_Data: Cpp_PLC.AnyLocation_State14 ? qsTr("已启用") : qsTr("已禁用")
                contentText_Color: Cpp_PLC.AnyLocation_State14 ?  "red" : "black"

                onButtonClicked: {
                    if(Cpp_PLC.AnyLocation_State14)
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(414,"0")
                    }
                    else
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(414,"1")
                    }
                }
            }
        }
        Item{
            width: 1060
            height: 85

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     // anchors.leftMargin: 20
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_DownLimit_15

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1834,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1834,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1834,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                // anchors.leftMargin: 20
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_DownLimit_15
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1834,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 280
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_UpLimit_15

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1836,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1836,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1836,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 280
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_UpLimit_15
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1836,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 560
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_15

            //     onInputFinished: {
            //         if(Number(inputData) < -99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1838,"-99")
            //         }
            //         else if(Number(inputData) > 99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1838,"99")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1838,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 560
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_15
                minValue: -99
                maxValue: 99
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1838,value)
                }

            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 850
                contentText_Fontsize: 40
                contentText_Data: Cpp_PLC.AnyLocation_State15 ? qsTr("已启用") : qsTr("已禁用")
                contentText_Color: Cpp_PLC.AnyLocation_State15 ?  "red" : "black"

                onButtonClicked: {
                    if(Cpp_PLC.AnyLocation_State15)
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(415,"0")
                    }
                    else
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(415,"1")
                    }
                }
            }
        }
        Item{
            width: 1060
            height: 85

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     // anchors.leftMargin: 20
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_DownLimit_16

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1840,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1840,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1840,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                // anchors.leftMargin: 20
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_DownLimit_16
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1840,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 280
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_UpLimit_16

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1842,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1842,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1842,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 280
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_UpLimit_16
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1842,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 560
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_16

            //     onInputFinished: {
            //         if(Number(inputData) < -99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1844,"-99")
            //         }
            //         else if(Number(inputData) > 99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1844,"99")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1844,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 560
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_16
                minValue: -99
                maxValue: 99
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1844,value)
                }

            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 850
                contentText_Fontsize: 40
                contentText_Data: Cpp_PLC.AnyLocation_State16 ? qsTr("已启用") : qsTr("已禁用")
                contentText_Color: Cpp_PLC.AnyLocation_State16 ?  "red" : "black"

                onButtonClicked: {
                    if(Cpp_PLC.AnyLocation_State16)
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(416,"0")
                    }
                    else
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(416,"1")
                    }
                }
            }
        }
        Item{
            width: 1060
            height: 85

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     // anchors.leftMargin: 20
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_DownLimit_17

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1846,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1846,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1846,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                // anchors.leftMargin: 20
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_DownLimit_17
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1846,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 280
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_UpLimit_17

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1848,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1848,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1848,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 280
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_UpLimit_17
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1848,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 560
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_17

            //     onInputFinished: {
            //         if(Number(inputData) < -99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1850,"-99")
            //         }
            //         else if(Number(inputData) > 99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1850,"99")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1850,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 560
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_17
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1850,value)
                }

            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 850
                contentText_Fontsize: 40
                contentText_Data: Cpp_PLC.AnyLocation_State17 ? qsTr("已启用") : qsTr("已禁用")
                contentText_Color: Cpp_PLC.AnyLocation_State17 ?  "red" : "black"

                onButtonClicked: {
                    if(Cpp_PLC.AnyLocation_State17)
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(417,"0")
                    }
                    else
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(417,"1")
                    }
                }
            }
        }
        Item{
            width: 1060
            height: 85

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     // anchors.leftMargin: 20
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_DownLimit_18

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1852,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1852,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1852,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                // anchors.leftMargin: 20
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_DownLimit_18
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1852,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 280
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_UpLimit_18

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1854,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1854,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1854,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 280
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_UpLimit_18
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1854,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 560
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_18

            //     onInputFinished: {
            //         if(Number(inputData) < -99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1856,"-99")
            //         }
            //         else if(Number(inputData) > 99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1856,"99")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1856,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 560
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_18
                minValue: -99
                maxValue: 99
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1856,value)
                }

            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 850
                contentText_Fontsize: 40
                contentText_Data: Cpp_PLC.AnyLocation_State18 ? qsTr("已启用") : qsTr("已禁用")
                contentText_Color: Cpp_PLC.AnyLocation_State18 ?  "red" : "black"

                onButtonClicked: {
                    if(Cpp_PLC.AnyLocation_State18)
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(418,"0")
                    }
                    else
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(418,"1")
                    }
                }
            }
        }
        Item{
            width: 1060
            height: 85

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     // anchors.leftMargin: 20
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_DownLimit_19

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1858,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1858,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1858,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                // anchors.leftMargin: 20
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_DownLimit_19
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1858,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 280
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_UpLimit_19

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1860,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1860,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1860,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 280
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_UpLimit_19
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1860,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 560
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_19

            //     onInputFinished: {
            //         if(Number(inputData) < -99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1862,"-99")
            //         }
            //         else if(Number(inputData) > 99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1862,"99")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1862,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 560
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_19
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1862,value)
                }

            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 850
                contentText_Fontsize: 40
                contentText_Data: Cpp_PLC.AnyLocation_State19 ? qsTr("已启用") : qsTr("已禁用")
                contentText_Color: Cpp_PLC.AnyLocation_State19 ?  "red" : "black"

                onButtonClicked: {
                    if(Cpp_PLC.AnyLocation_State19)
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(419,"0")
                    }
                    else
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(419,"1")
                    }
                }
            }
        }
        Item{
            width: 1060
            height: 85

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     // anchors.leftMargin: 20
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_DownLimit_20

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1864,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1864,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1864,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                // anchors.leftMargin: 20
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_DownLimit_20
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1864,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 280
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_UpLimit_20

            //     onInputFinished: {
            //         if(Number(inputData) < 0)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1866,"0")
            //         }
            //         else if(Number(inputData) > 9999)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1866,"9999")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1866,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 280
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_UpLimit_20
                minValue: 0
                maxValue: 9999
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1866,value)
                }

            }

            // A_TextInput{
            //     anchors.verticalCenter: parent.verticalCenter
            //     anchors.left: parent.left
            //     anchors.leftMargin: 560
            //     inputWidth: 270
            //     showData: Cpp_PLC.AnyLocation_Compensate_20

            //     onInputFinished: {
            //         if(Number(inputData) < -99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1868,"-99")
            //         }
            //         else if(Number(inputData) > 99)
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1868,"99")
            //         }
            //         else
            //         {
            //             Cpp_PLC.write_Modbus_RTU_Hold_32(1868,inputData)
            //         }
            //     }
            // }

            A_NumberInput{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 560
                inputWidth: 270
                text: Cpp_PLC.AnyLocation_Compensate_20
                minValue: -99
                maxValue: 99
                keyboard: anyLocationKeyboard

                onEditingFinished: function(value) {
                    Cpp_PLC.write_Modbus_RTU_Hold_32(1868,value)
                }

            }

            A_Button{
                anchors.verticalCenter: parent.verticalCenter
                anchors.left: parent.left
                anchors.leftMargin: 850
                contentText_Fontsize: 40
                contentText_Data: Cpp_PLC.AnyLocation_State20 ? qsTr("已启用") : qsTr("已禁用")
                contentText_Color: Cpp_PLC.AnyLocation_State20 ?  "red" : "black"

                onButtonClicked: {
                    if(Cpp_PLC.AnyLocation_State20)
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(420,"0")
                    }
                    else
                    {
                        Cpp_PLC.write_Modbus_RTU_Coils(420,"1")
                    }
                }
            }
        }


    }



}
